<!DOCTYPE HTML>
<html lang="zh-cn">
  <head>
    <meta charset="UTF-8">
    <title>Powerful JQuery Plugins</title>
    <link href="/js/jQueryUI/jquery-ui.css" type="text/css" rel="stylesheet"></link>
    <link href="/js/jQueryScrollbar/perfect-scrollbar.css" type="text/css" rel="stylesheet"></link>
  	<style type="text/css">
  		* {
  			margin: 0;
  			padding: 0;
  		}
  		/* 
  			设置min-width的元素必须是在标准文档流之中的，否则浏览器窗口改变后，不会出现滚动条
  			fixed如果未设置偏移量，则会跟absolute一样会根据父级一定为元素为基准
  		*/
  		.container {
  			position: relative;
  			width: 80%;
  			min-width: 1024px;
  			margin: 0 auto;
  			background-color: gray;
  			height: 1024px;
  		}
  		/* 
  			父元素是浏览器可视窗口
  		*/
  		.top {
  			width: 100%;
  			min-width: 900px;
  			height: 50px;
  			position: fixed;
  			margin: 0 auto;
  			left: 0;
  			right: 0;
  			top: 0;
  			background-color: purple;
  		}
  	</style>
  </head>
  
  <body>
  	<div class="container">
	  	<div class="top"></div>
	  	<div class="main"></div>
	  	<div class="left"></div>
  	</div>
    <script src="/js/jQuery/jquery-1.11.3.js" type="text/javascript"></script>
    <script src="/js/jQueryUI/jquery-ui.js" type="text/javascript"></script>
    <script src="/js/jQueryValidation/jquery.validate.js" type="text/javascript"></script>
    <script src="/js/jQueryValidation/messages_zh.js" type="text/javascript"></script>
    <script src="/js/jQueryValidation/additional-methods.js" type="text/javascript"></script>
    <script src="/js/jQueryValidation/additional-methods.js" type="text/javascript"></script>
    <script src="/js/jQueryScrollbar/perfect-scrollbar.jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function() {
            console.info("Dom元素加载完毕！");
        });
    </script>
  </body>
</html>